    <select id="getEntityByKey" resultMap="${table.className?uncap_first}ResultMap">
        SELECT
        <include refid="BASE_COLUMN_INFO" />
        FROM `${table.tableName}` t
        WHERE t.${table.primaryColumnName} = ${r'#{'}_parameter}
    </select>